<template>
  <div>
    <span>home page -- id is {{ query.id }}</span>
    <div>
      <el-button @click="handleLogin" type="danger">go main login</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">

const { query } = useRoute()

console.log(query, 'query')

const handleLogin = () => {
  const router = window.microApp.router.getBaseAppRouter()
  router.push({ path: '/login' })
}

</script>